package com.usabb.api.dto;

import com.usabb.domain.AmenityDO;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
public class AmenityDTO {

    private Long id;
    private String name;

    public static AmenityDTO of(AmenityDO amenityDO) {
        AmenityDTO dto = new AmenityDTO();
        dto.setId(amenityDO.getId());
        dto.setName(amenityDO.getName());

        return dto;
    }

}